/**
 * 
 */
package org.stars.database;

/**
 * Contiene le informazioni relative al database che si sta utilizzando.
 * 
 * @author Francesco Benincasa (908099)
 * 
 */
public class DatabaseInformation {
	protected static String defaultString = "unsupported feature";

	protected DatabaseType type;

	/**
	 * @return the type
	 */
	public DatabaseType getType() {
		return type;
	}

	/**
	 * @param type
	 *            the type to set
	 */
	public void setType(DatabaseType type) {
		this.type = type;
	}

	protected String majorVersion;
	protected String minorVersion;

	/**
	 * @return the majorVersion
	 */
	public String getMajorVersion() {
		return majorVersion;
	}

	/**
	 * @param majorVersion
	 *            the majorVersion to set
	 */
	public void setMajorVersion(String majorVersion) {
		this.majorVersion = majorVersion;
	}

	/**
	 * @return the minorVersion
	 */
	public String getMinorVersion() {
		return minorVersion;
	}

	/**
	 * @param minorVersion
	 *            the minorVersion to set
	 */
	public void setMinorVersion(String minorVersion) {
		this.minorVersion = minorVersion;
	}

	/**
	 * @return the productName
	 */
	public String getProductName() {
		return productName;
	}

	/**
	 * @param value
	 *            the productName to set
	 */
	public void setProductName(String value) {
		this.productName = value;						
	}

	/**
	 * @return the productVersion
	 */
	public String getProductVersion() {
		return productVersion;
	}

	/**
	 * @param productVersion
	 *            the productVersion to set
	 */
	public void setProductVersion(String productVersion) {
		this.productVersion = productVersion;
	}

	protected String productName;
	protected String productVersion;

	public DatabaseInformation() {
		majorVersion = defaultString;
		minorVersion = defaultString;
		productName = defaultString;
		productVersion = defaultString;
		type=DatabaseType.UNKNWON;
	}

}
